notebook: Compute tab width in a simpler way
authorBenjamin Otte <otte@redhat.com>
Wed, 1 Jun 2011 19:56:13 +0000 (21:56 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 1 Jun 2011 19:57:45 +0000 (21:57 +0200)
commitedd2f24b6ed362221661009c73245d9d4d616f66
tree62183d670e767d9a56cba3fdaaa2059e9a605f4b
parent86aefc2c316dcdef925f3578483066aea331fcc6
notebook: Compute tab width in a simpler way

This code should be more obvious: The check only needs to check for
scrollable widgets, and only needs to compare to tab_width.

As a side note, for vis_pages == 1, tab_width will be smaller than
tab_max + stuff, so this code will not behave differently.
gtk/gtknotebook.c